'use strict';

module.exports = app => {
  const {
    STRING,
    INTEGER,
    ENUM,
    TEXT
  } = app.Sequelize;

  const Test = app.model.define('test', {
    name: STRING,
    sex: ENUM('0', '1'),
    phone: STRING,
    wx: STRING,
    live: ENUM('0', '1'),
    content: TEXT,
    img: STRING,
    created_at: {
      type: INTEGER
    },
  });

  return Test;
};